using System;
using System.Collections.Generic;
using System.Linq;
namespace ServiceStack
{
	public static class AssertUtils
	{
		public static void AreNotNull<T>(params T[] fields)
		{
			if (fields.Contains(default(T)))
			{
				throw new ArgumentNullException(typeof(T).Name);
			}
		}
		public static void AreNotNull(IDictionary<string, object> fieldMap)
		{
			foreach (KeyValuePair<string, object> current in fieldMap)
			{
				if (current.Value == null)
				{
					throw new ArgumentNullException(current.Key);
				}
			}
		}
	}
}
